package com.example.music.dto;
import java.util.List;import com.baomidou.mybatisplus.plugins.Page;
/**
 * Created by yinhuachang on 2018/4/25.
 */
public class PageInfoBT<T> {
    // 结果集
    private List<T> content;

    // 总数
    private long total;

    public PageInfoBT(Page<T> page) {
        this.content = page.getRecords();
        this.total = page.getTotal();
    }

    public List<T> getContent() {
        return content;
    }

    public void setContent(List<T> content) {
        this.content = content;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}
